<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('选择单价')" />
</head>
<body class="gray-bg">
     <input type="hidden" id="rowIds">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var prefix = ctx + "price/project";

        $(function() {
            var options = {
                url: prefix + "/list",
		        showSearch: false,
		        showRefresh: false,
		        showToggle: false,
		        showColumns: false,
				columns: [{
					field: 'selectItem',
					radio: true
				},
				{
					field : 'id',
					title : 'ID',
					visible: false
				},
				{
					field : 'name',
					title : '工程名称',
					visible: false
				},
				{
					field : 'projectDate',
					title : '工程日期',
					visible: false
				},
					{
						field : 'chineseWorkerUnitPrice',
						title : '中国工人工日单价',
						visible: false
					}]
            };
            $.table.init(options);
        });

		/* 添加用户-选择用户-提交(回调形式-父页面调用子页面) */
		function getSelections() {
			return $.table.selectFirstColumns();
		}

    </script>
</body>
</html>